The New Linux ’perf’ Tools
نویسنده
چکیده
1 Abstract The perf events infrastructure is fast moving into being the unifying channel for hardware and software performance analysis. Modern CPUs have hardware dedicated to counting events associated with performance, special registers that allow pinpointing hotspots that can possibly be optimized. Recent developments in the Linux kernel explore these features, solving problems found in previous attempts, such as OProfile. The reuse of Linux kernel code in user space applications as part of the experiment of shipping user space tools in the kernel repository is discussed. Throughout this paper the current status of development will be discussed, mentioning ongoing discussions and feedback to decisions taken, trying to help interested people in joining the effort to have better hardware and software event processing tools in the Linux environment. To avoid the disconnect of the kernel and user parts for a tool directly used by the kernel community the perf tools are being developed in the kernel repository, a first. One example of this disconnect can be read in a bug tracking entry[1] where Linus Torvalds reported not being able to use the hardware performance counters on recent hardware and kernel. The problem was that the userspace code to match the kernel support was not present on the OS used. While this happens sometimes with other OS components the nature of profiling being so close to kernel development lead to this attempt to develop both together. That does not mean that there is not an ABI guarantee, if it changes in a non backward compatible way, it is a bug. There are already several tools that are not hosted in the kernel repository that depend on the perf ABI, sysprof for instance[2]. Another goal is to reduce the barrier for coding in the kernel and in the user space tools, so the tools are being developed following kernel coding style and conventions, reusing the familiar list, rbtree, error reporting, hash facilities and others as the experiment matures.
منابع مشابه
perf fuzzer: Targeted Fuzzing of the perf event open() System Call
Fuzzing is a process where random, almost valid, input streams are automatically generated and fed into computer systems in order to test the robustness of userexposed interfaces. We fuzz the Linux kernel system call interface; unlike previous work that attempts to generically fuzz all of an operating system’s system calls, we explore the effectiveness of using specific domain knowledge and foc...
متن کاملOn the Complexity of Perfect Models of Logic Programs
In this paper we investigate computational complexity of the PERF-consistency and PERF-entailment problems for ground normal logic programs. In [3] it is proved that these problems belong to Σ2 and Π P 2 correspondingly. The question of obtaining more accurate results was left as open. We prove that both problems belong to ∆2 . Lower bounds on the complexity of these problems are also establish...
متن کاملWCET Estimation from Object Code implemented in the PERF Environment
“The estimation of the Worst Case Execution Time of a function produces results that are safe and that have a low error, even in architectures using pipelines and caches.” This is our thesis; in this paper we present results that indicate that this thesis is correct. The two basic approaches to obtain WCET of a piece of code are estimation and measurement. At LIT, a tool called PERF is under de...
متن کاملGeometricity of the Hodge Filtration on the ∞-stack of Perfect Complexes over Xdr
We construct a locally geometric ∞-stack MHod(X,Perf) of perfect complexes with λ-connection structure on a smooth projective variety X. This maps to A1/Gm, so it can be considered as the Hodge filtration of its fiber over 1 which is MDR(X,Perf), parametrizing complexes of DX-modules which are OX -perfect. We apply the result of Toen-Vaquié that Perf(X) is locally geometric. The proof of geomet...
متن کاملAn Entity Resolution Framework for Deduplicating Proteins
An important prerequisite to successfully integrating protein data is detecting duplicate records spread across different databases. In this paper, we describe a new framework for protein entity resolution, called PERF, which deduplicates protein mentions using a wide range of protein attributes. A mention refers to any recorded information about a protein, whether it is derived from a database...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2010